<!DOCTYPE html>
<html>
<head>
<title>数据库</title>
</head>
<body>
    <table>
    	<tr>
    		<th>序号</th>
    		<th>姓名</th>
    		<th>性别</th>
    		<th>成绩</th>
    		<th>专业</th>
    	</tr>
    	<?php 
    	foreach ($data as $key => $value){
    	?>
    	<tr>
    		<th><?= $value[0]?></th>
    		<th><?= $value[1]?></th>
    		<th><?= $value[2]?></th>
    		<th><?= $value[3]?></th>
    		<th><?= $value[6]?></th>
    	</tr>
    	<?php 
    	}?>
    </table>
</body>
</html>